package com.yociyy.admin.model.entity;

import com.yociyy.common.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 系统-岗位信息表 entity
 * 
 * @author Y.yang
 * @date 2019-12-03
 */
@Data
@Accessors(chain = true)
@Table(name = "base_post")
public class BasePost extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@Id
	@Column(name = "id")
	@GeneratedValue(generator = "JDBC")
	protected Long id;

	/**
	 * 岗位编码
	 */
	@Column(name = "post_code")
	private String postCode;

	/**
	 * 岗位名称
	 */
	@Column(name = "post_name")
	private String postName;

	/**
	 * 显示顺序
	 */
	@Column(name = "sorted")
	private Integer sorted;

	/**
	 * 状态（0正常 1停用）
	 */
	@Column(name = "enabled")
	private String enabled;

	/**
	 * 备注
	 */
	@Column(name = "remark")
	private String remark;

}
